target=app
CC=gcc -Wall -g
CFLAGS= -I ./include
LFLAGS= 
src=$(wildcard ./src/*.c)
obj=$(patsubst %.c, %.o, $(src))

$(target):$(obj)
	$(CC) $^ -o $@ $(CFLAGS) $(LFLAGS)

%.o:%.cpp
	$(CC) -c $< -o $@  $(CFLAGS) $(LFLAGS)

.PHONY:clean
clean:
	-rm -rf $(target) -f
	-rm -rf $(obj) -f